Honestly this is a very bad look for both sides. But resigning over this tops everything. You don't resign at the first sign something is wrong, you try to help fix it. Sure if that doesn't work resign. No social environment is perfect and mistakes will always be made.