ERROR: Failed to receive session end confirmation! on Heimdall while flashing to a Samsung A40 (SM-A405FN) On Debian 10

Does anybody know why When I try to flash A recovery or any other file to phone Heimdall Just gives this error message ERROR: Failed to receive session end confirmation!

I have tried Doing it on USB 3 and on USB 2 but the result is the same.