Hi, I faced the same problem when applying. I have put my father’s name as surname. I have travelled abroad once and haven’t faced any issues.
You are right. A lot of universities ask for a mandatory surname, whereas middle name is optional.
Please note, I’m not a lawyer and don’t know the legal repercussions of this.