How do you know your enlightenment/spiritual awakening isn't just mental illness?
In authentic enlightenment mental illness is no longer possible. It is not a possibility. Once one knows that mental illness is no longer a possibility, one also gets a insight into the nature of all mental illnesses. These things come hand in hand.
Authentic enlightenment often looks like a mental illness from the egoic perspective, because ego is, strictly speaking, a mental illness.