freaking out over sugar? help!!

my whole pregnancy i didn't consume a lot of sugar. now i'm 31 weeks and it's all i want. i've had like 10 oreos every single day. ive only gained 3 pounds my whole pregnancy so far. Is my baby gonna be effected by my recent sugar increase? My last appointment her heart rate was higher than usual, do you think it had something to do with it?