Sony A5000 keeps restarting when pressing shutter button

I bought a Sony A5000, second-hand in 2023, and it worked perfectly until about 3–4 months ago when a strange issue started, everything on the camera works fine (recording, dials, buttons, menus), but whenever I press the shutter button to take a photo, the camera restarts, and it usually takes 4–5 tries before it actually captures a picture. I’m wondering if this could be a motherboard problem or something else like the shutter assembly or power?
Also, can a weak or aging battery cause this kind of restart loop when the shutter activates, even if the camera powers on and records video fine?

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

crwdns2934109:0crwdne2934109:0

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