Saying Elon “believed” the diver guy was a pedophile is cutting Elon a lot of slack. Perhaps “imagined” or “wanted to believe” or, more charitably, “guessed” would be more appropriate.
Most likely what happened is Elon felt insulted and decided to use his enormous platform to make wild allegations