Locating documents and sharing them with others in Teams chats or channels
Can they access the files via a link to sharepoint (in a browser) ? This will let you know if the permissions are correct.
Did you add it as a document library? Did you give the students permission individually or as a group?