Yes, it was madness. His fight and victory over Peter in ‘Final Chapter’ was completely imagined. Awful story.
His recovery was detailed in Roger Stern’s ‘Revenge of the Goblin’ 3-part mini. Basically he wore some patch which administered some kind of non-crazy drug into his system. The solution didn’t make much sense, but it was a dumb plot-line to begin with lol.