Unfortunately, it just doesn't work like that.
Student and indie films are generally unwatchable cringefests that pay nothing. So not only are you not going to be able to make a career out of that, it is extremely likely that no one other than other indie filmmakers is going to hear your score in action.
The idea of maybe making the next "paranormal activity", a low-budget indie-film that actually because a theatrical hit, has astronomically-low possibility of happening.
There is perhaps money to be made off licensing music to YouTubers and streamers, though.
It is easier to get into doing music for video games simply because it is easier to homebrew a high-quality video game than it is a film and so you're more likely to have a winner of a product. The tradeoff is that most indie devs never finish what they start because making games is tough.
I worked on a lot of indie games, even paid gigs, in the late 2000s and early 2010s (though few actually got released) simply because at that time, the mobile market was fairly new and full of opportunity, but that time has passed.
Also, since 2007, the console and PC gaming markets have become multi-billion dollar, soulless corporations like in the film industry. They are also bent on one-upping Hollywood for some bizarre reason, so they now either are working with the same composers they've been working with for 20 years or hire literal hollywood composers...
Honestly, the best advice with vidya gaemz is to compose for simple indie games and license your existing work to them so that you can have a large net of projects at any one time. So you will have "many irons in the fire" all paying smaller licensing fees and so not only can you actually make a little money, but the games you're putting music in might actually stand a chance of getting released.
At this point, I would not agree to write a custom soundtrack for anyone who hasn't already released 2 games minimum and ALWAYS keep the rights so if the project goes down, you can reuse and license that music out to other games.
NOTHING is worse than spending a lot of time on a soundtrack only for it to be a wasted effort.