I saw some translators translate "in your absence from him" into "In deiner Abwesenheit von ihm" and some into "in deiner Abwesenheit zu ihm".
So which one is correct and do they have the same meaning in German?
Abwesenheit isn't really in that way. Firstly, the preposition to use if we want to use the absence as a measure of time would be während
It does work with the preposition von but not for people. It works for a meeting
But you cannot really be abwesend from someone. The main problem is that the person who is absent is also connected using von and that use is by far the more common one.
So using it the way you suggested is quite confusing and to my ears it is on the edge of wrong. I'd suggest a different phrasing entirely
But that ultimately depends on context.
So both sound not really as somebody would say it and google also doesn't find this term very often. But "in deiner Abwesenheit von ihm" is at least using the right grammar, because it is "abwesend von etwas". "zu ihm" is wrong.