Failed retrieving file / failed to commit transaction

I think this has to do with the megasync package not being available, just check the AUR page for that package and put it on the ignore list to update the rest of your system.