If you turn on prevent.duplicate.enrollment, then, to replace a damaged device, you need to delete and re-create the device in the "Devices" section. This is done intentionally to prevent the duplicate device enrollment (replacing a damaged device is considered an exceptional action, so there is no special option or button for that).
If replacing devices is a frequent action in your workflow, consider turning off preventing duplicate enrollment.