Let $p$ be a prime number, $n$ be a positive integer, and let ${\mathbb Z}_p^{n\times n}$ denote the set of $n\times n$-matrices over ${\mathbb Z}/p{\mathbb Z}$.
Suppose we are given an integer $m>0$ and matrices ${\bf A}_1,\ldots, {\bf A}_m\in {\mathbb Z}_p^{n\times n}.$ I am looking at the following problem: if there are positive integers $n_1,\ldots n_m$ such that $${\bf A}_1^{n_1}{\bf A}_2^{n_2}\cdots{\bf A}_m^{n_m} = {\bf 0},$$ output YES, otherwise output NO.
Is this problem decidable for all primes $p$, for all sizes of matrixes $n\times n$, and for all numbers of input matrices $m\in\mathbb{N}$?