Chosen Solution
Why won’t my battery cover remain closed?
The latch that holds it in place can eventually give in and fail to hold in securely. Take a look at where it gets held in place on both the cover and the camera and see if you see any damage or anything wearing out.