A perfect sentence. However, just because of common usage, I think you have two better options:
1. Thank you so much, but I can't make it due it to family reasons.
2. Thank you so much, but I won't be able to make it due to family reasons.
'won't make it' is not incorrect, but it is more common to say the two things I wrote in response to an invitation.