I had similar issues and started looking through ratgdo logs to figure it out. Ypur problem is likely due to a failing (or old and incompatible) wall keypad. The wall keypad is what tracks/maintains the door open/close status. Otherwise, ratgdo goes into “emulation mode” and tries to infer position on its own, which isn’t always accurate, especially after power failures.
LiftMaster has had recalls on a couple of different wall keypads due to failing capacitors and/or other issues. I replaced my 888LM keypad with a 889LM keypad and that solved the “false position” problem. (It was a free replacement by filling out the a form in the LiftMaster website.) These particular 888LM/889LM keypads add MyQ compatibility to older Security+ 1.0 garage doors, but there are other keypads with other problems for Security+ 2.0.
My suggestion is you start with the keypad, and definitely upgrade to an 889LM if you have a Security+ 1.0 garage door opener.
Also, a battery backup for the garage door opener is a very good idea. Most wall keypads take 30 seconds to 5 minutes for the capacitors to charge up before coming online. During this charging period, ratgdo may switch to “emulation mode” and ignore the keypad when it comes online, leading to phantom position changes. This is a known problem with ratgdo and an issue has been raised. Adding a LiftMaster battery back up (and preventing power loss to the garage door/keypad big buddy) is the only currently known fix.