What can I do to relieve a groin rash due to sweating a lot?

Several. You may need an antipersperant. You may need to use vaseline type products to avoid chaffing. You may need to use cotton underwear or other wicking or drying garments to keep dry. Maybe even go "commando". Dryness is the clue.