UK CT is charged on, generally speaking, companies incorporated in the UK or companies centrally managed and controlled in the UK. A nominee director, in which they rubber stamp all board decisions that are in reality made in the UK, would result in a UK CT charge. A professional director in another jurisdiction, may be advised and influenced by somebody in the UK, but may not be usurped in their independent decision making.
In terms of extracting those funds from the company, you should consult the statutory residency test (RDR3). Broadly speaking, it is taken in order of three automatic overseas tests, three automatic UK tests, and then a sufficient ties test.
Automatic overseas tests are:
1. You would fail because you spend more than 16 days in the UK.
2. You would fail because you spend more than 46 days in the UK.
3. You would fail because you spend more than 91 days in the UK.
For each of these tests, there are more components, but these are the steps you will definitely fail on.
The first automatic UK test would be met, as you spend more than 183 days in the UK. The fact that each stay of five months is on a different passport, would make no difference. You are still the same person.
As such, you would be liable to UK tax on worldwide income, save for any non-dom status which may apply (although not enough information is provided, I doubt this would be the case).