For what reasons might watermelon or even cucumbers give me such indigestion?

Cucurbitacin. Watermelons and cucumbers both contain a compound called cucurbitacin. Many people react to cucurbitacins, suffering gas and indigestion.