To prevent this, you can add an octane booster to the unleaded fuel. Octane boosters are available at most auto parts stores.
You can also adjust the ignition timing on the XS750 to advance it slightly, which will help to reduce engine knock.
If you do not want to add an octane booster or adjust the ignition timing, you can use a lower-octane unleaded fuel, such as 87 octane, in the XS750. However, this may cause the engine to run less efficiently and produce less power.
Also, unleaded fuel can affect older gaskets, seals, and O-rings that were designed for leaded fuel. The additives in leaded fuel helped lubricate the valves, and without these additives, the valves can become dry and stick.
In summary, while unleaded fuel can be used in a Yamaha XS750, it is important to take certain precautions and make adjustments to ensure that the engine runs properly and safely.