It could be the optical drive has a problem. Check device manager to see if ok. Try just copying some data to a disc to see if it burns that way. If XP it only burns CDs not DVDs and will need a third party burning program.
OnePlus 5T review: Hands-on