You can claim “I forgot” in response to questioning, and the judge will decide on the balance of evidence whether you appear to be telling the truth. Contra the panicky memes about contempt of court, people aren’t indefinitely detained because they forgot something. But that’s clearly not what happened here.