Hi welcome to health care magic forum.
Honestly i can find any relation between these 2.
It can be due to anemia
which can be caused by ulcer disease, but more common are vascular constriction disorders such as Raynouds sy or atherosclerosis
. usually it is benign but you should do doppler ultrasound
to check your vessels and circulation.
Wish you good health.