Does your boyfriend not know that sperm still enters you even if he pulls out? Precum can contain live sperm and is unavoidable unless you wear a condom.
I don’t know what pill you’re on so I can’t tell you what usage window you have for your 12 hours situation, but it really sounds like you’re just unwell.