Getting an error when saving project or trying to save smart materials:

I've seen folks on here suggest File -> Clean. My Painter (version 9.0.1) doesn't have a "clean" option but it has a "remove unusued resources" option. I assume that's the same thing? In any case, it doesn't let me save either.
Desperately seeking help so I can close project.