Anxious due to overthinking an issue.
Within one's intellect, memory, or mind.
Within one's imagination; without basis in reality.
Used other than figuratively or idiomatically: see in, one's, head.
Mentally.