I have definitely written a happy song about someone and then we ended up splitting up, but you have to put those kind of things to the back of your mind and tell yourself that it's a good song and it works on the album.
To try to write a grand cosmical drama leads necessarily to myth. To try to let knowledge substitute ignorance in increasingly larger regions of space and time is science.