You might find old tutorials discussing "Triangle Away" or various engineering bootloaders ( .tar files) that claim to reset the counter.
It is currently impossible to reset the Samsung Knox warranty status from through software. The Knox Warranty Bit is a permanent physical reset knox warranty void 0x1 back to 0x0
Here’s a clear, informative text explaining the concept, the technical reality, and the risks involved with resetting the “Knox Warranty Void” flag from back to 0x0 . You might find old tutorials discussing "Triangle Away"