Could they have institutionalized Cruz while they figured out what was going on?
Yes. The actions (cutting and holding a gun to the head) by the killer would have activated the state’s Baker Act.
Still reading this, a transcript of a call to the FBI on his IG posts...
http://online.wsj.com/public/resources/documents/FBI-transcript-02-23-2018.pdf