You will probably need to deactivate your own PS4 console as being your primary if you can’t activate your friend’s PlayStation.
After you get a PS4 Plus or a PS5, you will have to restart all of these functions. Then, you will need to ask your friend with whom you’ve shared your library to deactivate their console as your account’s primary system. After leveling up, you can enable the game sharing feature again, just like the first time.
There is one option which you can only use once in 6 months. You can deactivate the console remotely, but be aware when using this tool. If you don’t have access to your primary console, then the people you’ve shared your library won’t have access to, either. If your internet does not work, then nothing will be saved during this time, not for you or your friends.