Yes, it is as I thought.
Both wallets are almost identical. Each wallet has 203 keys, of which 202 of them are identical. One of those keys that are the same is for the address 3ABxGuyibTGH4n1Y3NMKNWP8477VBGTjCs. This address has also sent money to you at 3QjnBKZAdUK3MVfekycu2FhCpT3hvmYa5X. Because both of these wallets contain the key for 3ABxGuyibTGH4n1Y3NMKNWP8477VBGTjCs, both wallets also contain the transaction made to you, thus you see them.
What likely happened is that whoever gave these wallets to you started from the same base wallet. From this wallet file, they then inserted extra records for the addresses that have the balance that you care about. At some point they sent money to you from the base wallet, perhaps to prove that the wallets have money. Regardless, the wallets are nearly identical and the reason that the transaction appears in these wallets and in your wallet is because they all contain keys involved in that particular transaction.
Therefore there is no bug and you are working with maliciously crafted wallets.
You are just a genius person, I haven’t studied bitcoin that deeply, because I am not a programmer.
Thank you very much for your answer, now we can put an end to this story and I close the topic.
Thanks to everyone who took part in the discussion.