Same thing happened to someone I worked with years ago (non aviation role)
He was 17, she was 16 in a happy relationship and they exchanged a few nude pictures.
Fast forward 5 years and having both gone their separate ways. He sent his laptop in to be fixed and they saw these nudes of a young girl and reported it to the police.
The police paid him a visit and he was open and honest. The police then contacted his ex who admitted she’d sent them off her own back and that they were from 5 years ago etc.
The CPS prosecuted him anyway and he ended up with a suspended sentence and a period on the register.
Someone from probation/ police would visit him every year for a chat which basically turned into a cup of tea and a chat about life because the officer knew it was a ridiculous conviction.
Hope it’s all gets sorted