Hi, Alex.
Thanks for query.
It seems that due to driving motorbike on bumpy your testicle might have injured and some erosion in your
penile urethra causing infection.
Consult sexologist and get examined to rule out more damage to testicle.
Passing blood might be due to erosion in penile urethra.
I would suggest to take antibiotic medicine for few days.
Ok and bye.