Sex pains

I’ve been with my boyfriend for almost a year now and whenever we have sex we dont usually have any problems but after the first round last night I had peed and it stung sooo bad that I had to get an ice pack on it for almost 10 minutes. After that had happend we tried to go again and there was an excruciating pain trying to put it in, I’m talking the tip was barley in and it i was squirming as if it was my first time. Once he eased it in he said it felt unusually tight and was swollen so we stopped and waited to try again but every time we did it hurt more and more to initially put it in and kept feeling strange. I woke up this morning & I peed fine without pain and we had sex again but i was still a little swollen and it felt weird like it was overly ribbed/textured even thought there wasn’t s condom it that makes sense ? Does anyone know what could’ve been the problem last night ?