That Odin log posting indicates the PIT file needs to be restored:
<ID:0/021> Get PIT for mapping..
On Samsung phones the PIT file (Partition Information Table) is used to determine how the internal storage in your phone is set up. Your phone has various partitions where most are dedicated solely to the operating system. It's just a minuscule text file but has a vital purpose. When there's no PIT or its corrupted, you can't flash a ROM because the flashing utility, in your case Odin, has no place to actually start writing the firmware data onto. Without any partitions in the storage media, there's no place to write data.
https://gsm-flash.com/samsung-galaxy-a50-pit-file-download-a505/