Meghan Trainor had a "panic attack live on TV" in 2017, which left her "scream crying" once the broadcast was over.