(SPOILER) If I had to guess, the red pill in the end is some kind of a new future antipsychotic and the Darkness was just a psychosis caused by long separation from Earth/loneliness.
This is a brilliant interpretation. Who knows, it may be right :D