What’s the exact wording of the error message?
I’ve stumbled upon this thread where somebody has a problem with the MyPaint brush engine. It might help in your case.
EDIT: sry the link is to the correct thread, but not the comment I wanted to link
I need to take a nap.