I had this issue with an Android recently - but it was my own phone, an old one I wanted to test a SIM on. I couldn’t remember the PIN, couldn’t even recall having a PIN for this phone. I had to dig deep through the tech forums to find a solution, but got there eventually. And yes, I read that over and over during my search, “it’s for your security”. Argh!