I cannot open an iCloud account on my device because ‘the maximum number of free accounts have been activated’
Is your iPhone second handed? Probably the previous user has used all accounts. All you have to do is setup iCloud on any iPhone or iPad that has not been setup to iCloud or has remaining setup for iCloud and then sign in on blocked device.
I've done this with all my devices and all work fine.