I don’t know how to fix it but maybe the maintainers of this app do … in the meantime I’m just proposing to test and cancel installation if the server architecture is ARM …
As an alternative, please consider using Pleroma which may be more suitable (in terms of ressource needed) for ARM boards (though alright, in your case, 8GB is quite a lot and should be okay for Mastodon I suppose)