this is still a issue
Your using the distance tag wrong. It should be /data get entity @e[distance=..5,type=minecraft:shulker,limit=1] for it to detect all entities in a range of 5 blocks away from you,
The reason why is that ..5 is equal to a whole five, and this parameter works in decimals (example: 1.1)
I was making a drowned farm and they started crashing me.
that sounds like a seperate bug, as the crash report says its a ticking entity, not a block tick.
so thats why its crashing everytime a drown spawns? that explains it
This only seems to happen with newly employed villagers, if you destroy a job site block in a village (a naturally empolyed villager) it doesn't crash.