my penis never gets erect from just stretching it.
However, when I first started stretching it, I had problems with getting erections during stretching. I either let the erection die down or to a lazy ass stretch (basically sitting on it)
If its really a problem you might consider ejaculating before stretching? Its a lot more unlikely for me to get erections after ejaculating.
Hope this helped