I use to record my kids futsal games. 25 minutes each period. I did it many times with my iphones 12/13 Pro/14 Pro. Zero problems. But know I use the same methodology and conditions with my iPhone 15 Pro Max and it randomly stops recording. No storage problems (locally nor icloud), battery 100%-80%, no temperature issues...
I thought it could be a problem with my OS so I proceeded with a clean restoration... No data or apps restore... absolutely clean (it tooks me a long time to get my iphone back!), but nothing improved. I restarted the iphone and close every app running before each video recording and sometimes it can record 25 minutes, sometimes it stops in minute XXX (random).
Apple should do something to fix it.