Recently I got an issue without any code change in production.
The steps to reproduce are next:
Open site collection root page and then navigate to any document library and click on custom command set - an error occurred: Minified React error #290.
But when you refresh a document library view (o navigate to it directly) - everything is ok.
I guess it is something related to changes in modern list view and how scripts are loaded when page is refreshed partially (when you navigate from ordinary site page to document library)
Here is a repo with on of possible examples of code: react-command-panel