I am 18 years old and have had type 1 diabetes for 18 years. Recently i have become sexually active?

but sometimes i can't keep a hard on. I find that when this happens my blood sugar is usually low. Does low blood sugar cause this? Also, does type 1 diabetes cause ED? My A1C is always <6.5.