You'd have to check if it happens there too, if so, report it.
MrKashew commented
Or should this be reported to fabric counterpart
MerchantPug commented
This is an incredibly strange bug, because according to vanilla behaviour, it should only ever pass in a LivingEntity, which this message trips up whenever the entities that are passed in are not Living.