rework the text with different wording.
Tomas was unable to prevent himself from taking seriously what the Ministry official said.
Thomas couldn't help but take seriously what a man in the Ministry had to say.