make sure you lube the seals on the glass. plenty of you tubes on this. the pop happens when the glass seals stick together. a regular lube job every quarter keeps this from happening.
this. I just did mine last week- was pretty dirty all around & used a good bit of krytox, I also clean up the drain channels/plastic tracks as best I can w/ mild soap damp microfiber cloth.
and....while this shouldn’t be a “prerequisite” for proper sunroof operation, I learned early on you HAVE to vent it first time you use it before fully opening. Sounds like the OP was doing this too but still had it break....a lot of crud does tend to get in there though & cleaning/lubing seems to be hugely beneficial.
I was weary of buying one w/ the sunroof as a result of all the negative internet stuff, but good luck finding a well optioned truck- let alone a raptor- WITHOUT one.
2 years & 31k miles no issues yet, clean & lube it 3x a year