Why is my Nintendo 3DS screen turning off?

My 3DS has this issue where if I leave it closed for a while, regardless of charge, sometimes I will open it and it will remain a black screen. Not off but just black. The blue light is on and the game I am playing doesn't produce any audio. Hoping for a permanent fix as I'm playing Pokemon more recently and would like to not constantly save every time I progress a little bit in the game.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2947414:01crwdne2947414:0:

Hi!

Is the 3DS modded? If not, Is the software up to date? Does it also happens in the menu, or in game only? Does it only happen with a specific game? Thanks!

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0