Curious if making this throw an error is a low hanging feature fix. This is potentially one of those foot-guns that discourages new users, or causes lots of wasted time troubleshooting.
This comes from: Using Xacro to clean up your code — ROS 2 Documentation: Humble documentation
Disclaimer: Just now learning about xacros, so my naivete might be showing