Hi! Error 501 means the installer hit a required file that's already in use by another application. Save your work, close the app or process named in the installer log (on a Mac, Activity Monitor works great for finding and quitting the stuck process), then click Retry in the installer.
Adobe's official steps for this error are here: https://helpx.adobe.com/download-install/apps/troubleshoot/error-codes-300-and-above/error501.html
Hope that gets After Effects installed! Let us know how it goes.