Delusions can be heuristics, to use a favourite word of one of my philosopher-friends. They can help us reorganise perception, prompting us to ask questions or notice connections that eventually lead us to truths we would otherwise have missed.