Do you mean there was an error with a specific version of the project? And when you rolled back to a previous version, publishing worked? Do you know which version had the issue?
There’s a small chance that it was a transient issue, and if you roll back to the version that wasn’t working, it would now work. Let me know if that has any luck for you. Otherwise if it is a persistent issue then we can dig into the problem, just need to know the version…