You cannot apply for a Vietnam visa if your passport expires. In this case, you need to renew your passport before submitting the application.
Therefore, please check and make sure that your passport is valid for at least 6 months from the date of entry into Vietnam.