That's clinical depression. See a doctor.
Consulting a psychiatrist to ensure it's not a depression is a good idea though. If not, some psychologists are specialized in existential crisis ; it's called "logotherapy".
It could also be the result of a logical and intelligent thought process. I think anyone that follows the data and truth will eventually come to an existential break down that reframes their mind. Especially if they were raised religious, but that facade starts to crack.