If you're sitting for extended periods without a break, your body tends to become destabilised, which may lead to leg pain. An office chair that is too high for you may also put pressure on your thighs and tire them out.
To mitigate these issues, do your best to stand and stretch for a couple of minutes to give your body a break. Make sure to adjust your office chair to an ideal height where your legs are at ease to reduce pressure.