okay i’m panicking

okay I’m panicking can someone please help me? I’ve been on the pill for 10 years which I take perfectly never missing one no interfering medication no vomiting or diarrhea etc. for the past couple days I’ve been getting stomach aches after I eat and some heartburn I just haven’t been feeling the best my temperature is 98.4 or 98.6 .. first intercourse was 17 days ago and the second one was 9 days ago… I took a pregnancy test first thing in the morning and it was negative but I am 6 days away from my period… Again I am on the pill which I take perfectly do you guys think I’m okay? or do you think this is pregnancy related? if my pill hasn’t failed me

in 10 years why would it now?