It is normal for the custard to have some texture, but if there are large lumps then it has been overheated. Process with a handheld immersion blender for 15-45 seconds to smooth the custard.