This has happened a couple of times with my iPhone 14 Max Pro. I always keep the iOS up to date and there has been at least one, if not two updates between the first and second incidents, so whatever the cause, it either has not been resolved in the most recent update, or is down to some other issue with the firmware or hardware.
On both occasions, the BSOD occurred whilst charging overnight via cable and on both occasions, the issue was resolved by the - quick squeeze volume Up, quick squeeze volume Down and long squeeze on the right side button until the Apple logo appears - technique, though it took several attempts on the second occasion. Timing the squeezes seems to be critical, with ‘quick’ the operative word.