If anyone has found the solution, I'd love to know it!!!
Using SPD 2013 to make a 2010 workflow in SharePoint foundation. I got this same issue and now cannot publish even a one line workflow (Email to myself upon publish: Gets this error).
What has to be cleared, where to enable this? I had previously publish 15 workflows with no issues, now... 3 days of futility.