Units should be written as plain text outside of TeX blocks. Using \text{...} is forbidden.
\text{...}