This has been happening to me as well. I looked into it and found out that 2k still isn’t fully optimized for next gen ps5 yet. The game is causing the console to overheat and thus shutting off the console, so your ps5 is doing the correct thing doing a hard shut down before it over heats and bricks it completely. I saw a video saying to put a fan right behind your ps5 to keep it cooler during gameplay and it seems to be working longer before it hard shuts down again as opposed to no fan at all. So until 2k provides a big update for optimization the fan should be a temporary solution to play longer. I think
these guys can be very useful. Hope this helps!