This is why you don’t keep a gun super close to bed
I knew a guy who would sleep with a gun under his pillow. I think that’s crazy. You need it far enough away that you have time to fully awake and process reality before you have access to your firearm.