However, after a while, the stock camera started crashing. It's been 2 days and a LOT of factory resets later and I still can't get it to work properly. Sometimes it crashes, other times it can capture a pic but not a video or vise versa, popping messages such as "unable to capture media" and it's generally really slow. I just reset everything from TWRP (data, cache, system and internal memory), I didn't even log on google on the phone to avoid downloading any app data, i'm on stock ROM and I've downloaded zero apps. Stock camera is still crashing!
I may have royally messed up at some point, not very savvy with these things. Thank you for your help!
edit: I just tried opening the stock app once more to test it and I heard the hardware (cam) making clicking sounds while the screen was still dark (but the camera UI was there)
edit2: after rebooting a few times and disabling almost every non essential app the camera now crashes only when simply clicking on video mode ("please restart application" message appears). Phone doesn't even have a browser or the calendar on. I'm downloading a stock rom to completely wipe everything