5.0.1 had fixed this issue, but it seems to be back with 5.1. According to the open issue in github, it appears to be caused by some pages checking for “Manage Woocommerce” privileges and failing if the user doesn’t have them.
The problem is that I’m a full administrator with "manage_woocommerce": true
, and I get the same error.