I didn't share my account. I logged in my friend's account on my Ps5 and claim all the ps collection games. That's what I did. But I did this for 150+friends in the same group chat and I did all those things like a week ago. Nothing happened. Yesterday my friend told me that his account was temporarily banned from psn. So I went to check mine, found out both the console and the account are banned.
I think this is what may have happened to you.