Same thing on my Iphone 12. Reseting, restoring, restoring through iTunes and setting as new device didnt help. I was talking with Apple Support, everyting is fine with hardware on my phone sinie they can check it through internet. Funny thing that i was able to replicate this issue on my Iphone Xs, taking many photos and changing to video crashed camera app in the same way as it is crashing on Iphone 12. This has to be software problem. As a proof im attaching a video that i recorded, it shows this issue.