Apple File Protocol (AFP) is no longer supported on My Cloud OS 5 firmware 5.19.197 and higher.
For more information, please refer to My Cloud OS 5 firmware release notes
TimeMachine Backups must be reconfigured using Samba (SMB)
Connections to shares must be reconfigured using Samba (SMB)
Edit to add: Unofficially and entirely at the users own risk one can try to roll back to the OS3 firmware then roll back to an earlier version of the OS5 firmware (if one can download earlier versions of the OS5 firmware earlier than 5.19.197). Some past discussion on rolling back the multi bay My Cloud models.