First, 10W-40 is not better than 5W-40 at high temperatures. The "W" value is the viscosity at cold temperature. At normal engine operating temperature (and above), 5W-40 has the same viscosity as 10W-40 (they are both a 40-weight oil).
Lots of engines call for various oil weights based on temperature. However, the manual for the R1250 says "5W-40" without any mention of temperature. Based on that, I would say you should use 5W-40. I think there are 3 major factors here:
1. Thinner oil lubricates better at cold engine startup.
2. The alternator in that engine is cooled by the motor oil, and thicker oil might not do as good a job.
3. If your bike is still under warranty, if you need to make a warranty claim and it becomes known that you used a non-spec motor oil, they may not honor the warranty.