Let $\mathcal{H}$ be a complex Hilbert space and $\mathcal{B}(\mathcal{H})$ denotes the algebra of all bounded linear operators on $\mathcal{H}.$ Recall that a von Neumann algebra $\mathcal{U}\subseteq\mathcal{B}(\mathcal{H} ) $ is said to be a factor if its center is $\mathbb{C}I,$ where $I$ is the identity operator.
My attmept: I want to show that for any $A, B\in\mathcal{U},$ $A\mathcal{U}B=\{0\}$ implies that either $A=0$ or $B=0.$ Since $I\in\mathcal{U},$ we have $AB=0.$ Assume on contrary that $A\neq0$ and $B\neq0.$ Then, there exists some $x_0, y_0\in\mathcal{H}$ such that $ A(x_0)\neq 0$ and $ B(y_0)\neq 0.$ Therefore, we have $A(B(y_0))=0.$ From here we must get a contradiction. But I got stuck here and I don't know how to use the facts that $\mathcal{U}$ is a factor or Hahn-Banach Theorem.
This is a partial answer under the stronger assumption that the commutant of the von Neumann algebra $\mathcal{U}$ is trivial, i.e. $\mathcal{U}=B(\mathcal{H}).$ The corrections have been made due to two comments by @MaoWao.
If $\mathcal{U}$ is satisfies $\mathcal{U}'=\mathbb{C}I$ then for every $v\neq 0$ the set $V:=\{Tv\,:\, T\in \mathcal{U}\}$ is linearly dense in $\mathcal{H}.$ Indeed, assume that $P$ is the orthogonal projection onto the closure of the linear span of $V.$ Clearly $V$ is invariant for $S\in \mathcal{U}.$ Hence the ${\rm span}\,V$ is invariant as well as its closure. Therefore $SP=PSP$ for any $S\in \mathcal{U}.$ If $S=S^*$ we get $SP=PS.$ Since every element in $\mathcal{U}$ can be represented as $S_1+iS_2$ where $S_1,\, S_2\in \mathcal{U}$ are selfadjoint thus $SP=PS$ for any $S\in\mathcal{U}.$ Thus $P\in \mathcal{U}'$ wich implies $P=I.$ Therefore the set $V$ is linearly dense.
Assume $A\mathcal{U}B=0.$ If $B\neq 0$ there exists $x\in \mathcal{H}$ such that $v:=Bx\neq 0.$ Thus $ATv=ATBx=0$ for any $T\in \mathcal{U}.$ Hence $A$ vanishes on $V=\{Tv\,:\, T\in \mathcal{U}\}$ and consequently on its linear span. As the span of $V$ is dense we conclude that $A=0.$