I have a question regarding the compilation of Quran.
I am a student of world religions in today’s era, we have been taught that the Quran was verbally transmitted for about 20 years after the Prophet’s martyrdom until Abubakr wrote it down.

The question arises that with the oral transmittion there could be potential misinterpretation of Quran.

I know as per Shias, Imam Ali as has compiled the Quran but was it done after 20 years and was actually Quran transmitted orally or the verses were written down during the Prophet’s PBUH life?

It was always written from the time of the holy prophet saawa. He had scribes who used to write. They also memorized it for further protection. Quran refers to itself as Ketab which is written and compiled book