My background in quantum mechanics is minimal, and I had seen the canonical commutation relation $$[\hat x, \hat p_x] = i\hbar\, \mathbb{I}$$ in a course, I took about two years ago. I'm doing pure mathematics, and in Operator Theory, I learned that the commutator of two bounded linear operators on a Hilbert space cannot be a non-zero scalar multiple of the identity. For references, see Halmos' exposition here. The result was first proved by Wintner, though.
Question: What's going wrong in the case of the canonical commutation relation? Is at least one of the two operators not bounded or linear? Also, what's the Hilbert space on which the operators $\hat x$ and $\hat p_x$ act?