SQLite can reasonably handle databases as large as you can fit onto your machine. The biggest limitation is needing to serialize your writes.
SQLite really shines when you know that a database can only get so large, let’s say you have a paid product that is only ever going to have a moderate number of users.
And these are all hairy problems. At that point it might be just simpler to use a centralized Postgres or a proper distributed database.