The WebAssetManager error will appear when modules (or other extensions) try to add assets (css/js) at a stage in the rendering process when the head of the HTML page is already rendered.
When using Modules Anywhere inside (Custom) modules, make sure the "Prepare Content" option is on in that module.