Error in B %*% Z : non-conformable arguments - What is B and what is z?

Providing a a reprex (see the FAQ) is more likely to attract an answer.