Honestly, if i was in your position i wouldn't over think it. Practice rapping over a metronome for a bit. It should be easier for you to stay in time, there's less going on in comparison to a full song that has more stuff to distract you or throw you off your timing.
You might be better off using slower simple beats for a while. Should make it easier for you to keep in time and see where you are falling out.