Unfortunately there is no "getting over" the lying thing. It stays in your head and comes back to bite when you least expect it. Apologies are only a starting point. When my husband asked what he could do, I had to say "NOTHING, there is nothing you can do other than spend the rest of our marriage NOT lying to me. I will never forget and will always have some doubt.", likely how he feels about learning about your affair. It can lessen with time, but the doubt is always there and if we allow it can eat us alive. While the irrational back and forth can be attributed in some part to the OD on pain meds and lack of sleep, it will be easier to work through when rational minds prevail.