Oh, so it was likely the sleep deprivation and not the mushrooms? 12 hours and a good sleep later you should be just fine after taking mushrooms. That’s like 20 hours, tops.
I think the headlines play on mushrooms for outrage and clickbait. It makes readers feel better that there is something tangible that can be "controlled" rather than a hard to define cause of someone's seemingly functional brain misfiring badly.
The article says it was the guy's first time using mushrooms - which means he didn't know what effect they would have on him. So on one hand, this was not foreseeable because he wouldn't have had any way of knowing that taking mushrooms would cause him to not sleep for 40 hours. On the other hand, given that mushrooms can have adverse effects on some people, and he had no way of knowing if he'd be one of those people, taking mushrooms shortly before getting on a plane probably wasn't the best decision. "Guy makes stupid decision" is definitely the headline here, rather than "mushrooms are bad".
He was off duty. Tripping in a cockpit would be awesome as a mere spectator but this was irresponsible of both him and the pilot (if the shroom state was known).