Does everyone go bankrupt or is it just the people who pirated the game?
Pirates.
The games will reference pirating but that’s in general, not the actual piracy effect
You can go bankrupt if you don’t manage your finance and games development well, but that’s up to you, as you can also become a succesful game company, however those who got a pirated version of the game will eventually go bankrupt.