The first issue that occurs due to the time of avatar editing; Discord doesn’t allow you to edit the avatar 3 or 4 times in a minute, try to change it after 1 or 2 minutes. If you are doing too fast then you will face an error. so, just rest your profile and wait for few minutes.