"Something went wrong" is not a good error message if a user uploads a file larger than some undefined and pretty low size limit.
It's better than crashing
If the limit is 2MB, that's because the limit is being imposed by the web server.
Mastodon has no idea that this is specifically what's wrong, it only gets an error 500 in response.
Welcome to your niu world ! We are a cute and loving international community Ｏ(≧▽≦)Ｏ !