urge to pee and cant sleep

for the past week or 2 i have been having an extremely hard time falling asleep. for the past week i been feeling the urge to pee when i try to sleep. but when i get up to go pee little to nothing comes out. so i try to fall asleep again &’ i get the urge again &’ it continues on for hrs. the past 2 nights its been really bad to where it keeps me up until 5 am . it makes me really anxious &’ i dont know what to do cause idk what it is or how i should treat it.