Maybe try a different stretch for your hamstrings. The one I really like if I'm trying to get a good stretch is the one where you lie on your back, pull your knees to your chest, then extend your legs into the air and get a lot of your weight on your upper back and let gravity do the stretch.
Also, do you foam roll and do what's called a dynamic stretch. Like leg swings(forward and back, and to the side, that thing where move your hips in a circle. Stuff kind of like that.
This is another type of hamstring stretch that doesn't have you touching your toes. I started using these types of hamstring stretches more and only did the touch the toes type stretch if I'm not going to get to lie on the ground like at work or whatnot. The touch the toe type hamstring stretches can aggravate my SI joint issues and I thought the hamstring got more of the stretch with this type as opposed to the back which I feel happens a lot if your not really careful with touch your toe hamstring stretches.