A guard that can get into the spokes or chain becomes a cause of a crash in its own right. A missing part and a poorly fixed homemade guard are different risks, not two equivalent solutions.
What is known from experience
The stock plastic deforming in hot weather and an aluminium replacement cracking at the mountings have been described. With a wide rear tyre and a changed sprocket, there may be less free space. Price or material alone don't confirm suitability.
How to tell the causes apart
Check all the mountings and the clearance to the tyre, chain and guide through the full available suspension travel. Look for rub marks, cracks from the holes and contact with hot parts. Trimming is acceptable only once you understand what that section does; a loose broken piece must be removed before riding.
Checking the result
After fitting a new part, repeat the check with luggage and after the first rides. If the crack comes back, look for strain, insufficient support and resonance, not just thicker metal. The front sprocket cover, the chain guide and the upper guard do different jobs.