a simple mod that adds a raw damage limit, it limits the damage from any existing damage source in version 1.20.1. (including commands)
the maximum damage is configurable, it comes with a whitelist (the mobs that are specified in it receive the maximum damage you can apply to it)
you can configure it completely within the game itself or through the configuration folder of your minecraft