One thing to try... forceably hold the sliding cover all the way open when you take a picture.

Sometimes the XA series cameras do not make full contact with the interlock. Especially if the little latch pin is missing under the cover.

Worth a try