Sadly the support for APNG isn't great. For example on Discord GIFs works, but not APNGs. I also know of another service where, due to internal caching (IP hiding), APNGs get broken and don't animate.
Another reason could be that Discord caches images on its servers to hide viewer's IP from the original server hosting the image. The caching involves compression that sometimes breaks the image.