I think you may only leave out the to particle here if a form of 'do' comes before 'was'. For example: The only thing she could do was take deep breaths.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.