The only time I have had something like that with new components is when the gears are slightly out and the chain is jumping under pressure rather than full on slipping as you would have with a worn cassette.
If the bike is only two months old, I would be tempted to take it back and get them to sort it out as it should be under warranty.