If the person can stand for part of the prayer but not all of it:
• stand for as much as can be managed without the feared harm;
• then sit for the remainder as needed.
The rule follows ability. A person is not required to abandon all standing merely because a full standing prayer is impossible.