what are the disadvantages that a relay can have compared to an opto isolator when used as interface device?
Relatively high power and slow speed and longevity.
But I’m making some assumptions as to what you mean as “an interface device”. An odd term for a relay.