My bedside handgun changes on occasion but for the past three or four months, it has been a gen3 Glock 19 which is in full battery (loaded and chambered). For many years, I have a system I follow with handguns left out in the open for SD in the home (there are two currently with the other one being the one I carry on a daily basis when out and about). What I do is use one of my carry holsters, the same make and model that I actually carry, to hold my bedside gun. This holster has frictional retention and therefore takes a concerted effort with two hands to remove the pistol. It is also more than a completely easy reach away, but can be reached with a small amount of effort while still in bed.
This keeps me from getting the gun accidentally when awakening from a dream. It has worked for many years. And our children are grown and gone so it's just me and my wife.