It doesn't even work that way.
Film concept or script manages to get approved for production.
Investors are invited to participate.
Deals are set up for production, marketing, distribution.Those are the names you see in the credits at the start. "A bigblue production" "in association with" 3, 4, or more other investors, acting through a film production company.
Cast & crew are sought/auditioned.
Cast & crew sign contracts
Production happens (pre-production, shoot, post-production)
Cast & crew are paid according to contract, through production. For example, union shoots see them paid fortnightly according to scale.
A-listers might be paid otherwise, but generally, they get their fee before the film is released, even before shooting starts.
Film is finished shooting, edited, and slated for release.
Film is passed to the marketing dept.
Film is polished, talked up, and released.
Every actor and every crew member down to the last unit assistant has *already been paid* before the film is released to cinemas.
The income from cinema screenings and subsequent streaming release is sent back to the investors, and sometimes back to the A-listers who have the clout to demand a share of earnings.
Everyone else has been paid according to union scale. If the film's a flop at the cinemas, the investors will try to minimise the loss via streaming and maybe physical release and perhaps merchandise, but if it doesn't end up making a profit, that's for the investors' accountant to deal with.
So far, not a single job has been lost if a film hits the torrents.
Now, a loss in confidence in a studio or major production company from investors might result in some scripts not getting a greenlight, but I see no shortage of all kinds of films being released.
"One billion tickets sales" is........ unrealistic.