Yeah, this is a well known problem. Android uses VFAT for its internal storage (i.e. the /sdcard partition), so all filename limitations of the FAT filesystem apply to it (e.g. see https://averstak.tripod.com/fatdox/names.htm).
I wonder if there’s a user-friendly way to notify the user in this kind of situation, either on the sending side or the receiving side. Other than looking in logs, I mean.