is custom/provided by 3rd party and also the MCU specific NetworkInterface.c.
My guess: The MAC driver (implemented in NetworkInterface.c) has a problem resp. is buggy.
nmap might cause high packet load on the device revealing some corner case problems of the driver.