Please use \mathbf instead of \bm. So for example write:

$\mathbf{O(\log n)} + \mathbf{O(\lambda,\,\epsilon)}$

If your document already has a lot of \bm commands you can include this snippet in your header.tex:

\usepackage{bm}
\renewcommand{\bm}{\mathbf}
Was this article helpful?
Thank you!