Dyson stops after 30 seconds, works after plugged in for 10 seconds

My Dyson shuts off after about 20 seconds. I put it back on the charger for literally 5 seconds and then it works for a full charge. What do I need to do so that I don’t have to put it back on the charger for 5 seconds anytime I want to use it?

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

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0