I have noticed when chunks get unloaded mobs get unloaded, but don't actually despawn. When day hits and mobs start burning, you can leave the chunks, wait till night and go back to those chunks and the same mob will be burning still. This is why mobs stop spawning, because they aren't actually despawning when chunks get unloaded, I think you can also check this by going to the end and loading in some enderman, light up the end so that no more can spawn... leave the end for 10-15 mins if not more, go back to the end and the enderman will still be there, obviously could not have spawned because it was lit up. Hoping this information can help if it has not been mentioned before. (v1.13 Java Edition)
I noticed this after creating my OverEnder, enderman were not spawning as fast as they normally do, I would even notice at times that nothing would spawn for several minutes, keep in mind this is in the end, normal mob cap does not apply. So it has something to do with a mechanic itself not just mobs not despawning, because there are no other mobs loaded in the end currently other than the spawning pads for my OverEnder, I did notice though that if I had multiple accounts logged in and in the end near the pads enderman would spawn like crazy. I hope this issue gets resolved because my OverEnder is kind of pointless right now.
I think I have come up with a temporary fix, at least it seems to be working for my OverEnder... standing in 1 spot afk did not seem to spawn many if any mobs, but I setup a cart going in different directions randomly, and it seems to be working perfectly... I noticed when I was running enderman were spawning, but standing still hardly any if any spawned... so I thought well maybe the games checking to see if I am moving... seems to be working atm, I would recommend giving it a shot for yalls mob farms.