Hot spot formation in a curved iron-based superconducting whisker