DB Error: constraint violation when a member renews online
this looks like some custom code you have setup which is passing through the wrong group id. Its indicated by the API identifier in the failure. I would check what custom code you have and establish where group 13 is being passed in, you could turn on the backtrace recording so that the exact source can be determined.

The other thing to check is that the contribution page is set correctly in the section where contacts are automatically added to groups. Someone may have set it there and subsequently removed the group.

Either may cause this issue.