SQ had a nose gear retraction on an A330 at the gate a few years ago during a maintenance check. Another possible explanation would be damage from a hard landing and the structure fails under the stress of loading. This is less likely as FDM would flag up a landing sufficient to cause the required damage and an inspection would be carried out.
https://www.straitstimes.com/singapo...etracts-during