For your situation, sleeping in just the underwear (without the joggers) is the better choice. The scrotal area sweats naturally and the key to preventing redness and chafing is to keep it dry with good airflow. Adding joggers on top creates an extra layer of heat, friction, and moisture, which worsens the sweating and rubbing. Just wearing the trunk-style underwear alone will be cooler, reduce friction, and help keep the area drier through the night. To address the existing redness and chafing from rubbing, make sure the area is clean and dry before sleeping, and you can apply a small amount of plain petroleum jelly or a soothing barrier cream to the affected area to reduce friction.
Next Steps
Sleep in just the underwear without joggers. Keep the area clean and dry. If the redness or irritation persists or worsens, see a doctor as it may need a topical antifungal or barrier cream. Please consult me directly on Practo for a detailed evaluation.