Random matrix perspective on probabilistic error cancellation