If your kaya becomes lumpy it means you have cooked the jam on too high heat or for too long and the eggs have overcooked. Remember to cook it on low heat and stir continuously, watching the mixture closely to see when it's thick enough, then take it off the heat straight away. If it's only slightly lumpy, you can use a stick blender or hand mixer to blend for 30 seconds or so until smooth.