Praise be to Allah.
It is forbidden to act as a witness for riba-based transactions. You have to repent and seek the forgiveness of Allah for what you have done when you witnessed this riba-based loan.
And Allah is the source of strength. May Allah bless our Prophet Muhammad and his family and companions, and grant them peace.