MacBook freezing when I press the keyboard hard or lift the unit from

My MacBook freezes if I tap the space bar or anywhere near the bottom of the keyboard.

The same problem occurs if I push on the battery or lift the MacBook from underneath.

Sometimes it refuses to start and beeps 3 times as if the RAM has been improperly installed.

Can anyone recommend what to do? It’s an A1226 with an SSD and 6GB RAM.

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

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Take the battery out and inspect it. Is it laying flat when resting on the desk outside up? If not your battery has failed and you'll need a new one.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0