See "Environmental Requirements" toward the bottom here. Are you violating any of these (e.g., temperature)?
iPhone 8 Plus - Technical Specifications
If not, visit an Apple Store or Authorized Apple Service Center. Your iPhone is warrantied (assuming you are still in the country of purchase).