Fundamentally at least, the alarm works with ultrasonic distance meters which are fairly reliable in enclosed spaces. I made a unit a while back using those that detects people walking up to our door, even outdoors it worked well.
If the alarm is programmed correctly to discard single false detections then your source may be external. It works like a bat, bounces ultrasonic waves off the car and "times" the return signal, as simple as that. If something gets in the way it reduces the return time - or another thing that can happen is a false return signal. Which could be coming from anywhere, passing traffic being a common source.
Obviously check the basics like do you have car seat covers that might be confusing it (a total stab in the dark), or anything left on the dashboard. If it's only happening when plugged in it does imply maybe the charge circuit is interfering but one or two incidents isn't enough to fully correlate - I'd hedge my bets on a faulty ultrasonic sensor being the cause - they're up in the ceiling and I've noticed sometimes condensation forms up there at least on the lights.