It's probably not impossible but it will be difficult. Continuity would be the main issue, I think, especially during the IR. Don't think the CPL would be quite as problematic. CHances are that you would probably require more hours than the minimum due to the need to refresh previous lessons or work on weak points. Superficially, it might be attractive but, from a trg perspective, saving up the money and then taking unpaid leave, if you can, might save you more money in the long run.
I did CPL in a 3 week chunk one year and the IR over similar period in the following year which worked for me.