Not sure about OP's case, but when I had this issue, the door didn't close on its own like it's supposed to. In fact, one time I was driving and noticed in the side mirror that the charge port door was still open (surely it should have closed when the car was in motion). No physical jams or error messages, either (and nothing in service mode).
I looked back at my notes and I had these charge port door problems on both my Teslas when 2025.20.6 was installed. One of the subsequent updates fixed it but there were so many in a short period of time that I don't know which one was the cure.