Painful sex

So this is a little awkward but last night my boyfriend and I were having sex and occasionally I just get a little dry down there for no reason. Like it’s REALLY good sex but I can’t stay wet. And he can tell it hurts so he stops and I feel bad because we have tried lube and it just burns because it’s so dry. And then I’m irritated for the rest of the night and it kind of hurts to move. How can I fix this because it’s getting frustrating.