All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallahu ‘alayhi wa sallam, is His slave and Messenger.
If these are mere doubts and possibilities and you do not know with certainty that the course materials were actually taken without the consent of the original owner, you bear no sin for benefiting of these courses. You are not required to investigate the matter any further to make sure that they were used with the consent of their original owner.
Allah knows best.