Hello and welcome.
It can be a problem because as type 2's we have to cut out sugar, and seriously reduce our carb intake. Hence, we lose weight. In order to make up these lost calories we have to increase our fats and/or protein amounts. There is little choice really. It can be a fine balancing act, and not easy. I know from experience. I did need to lose weight, and I lost 4 stones. Then I needed to stay where I was and not lose or gain. I increased some of the higher calorie stuff like cheese, ate even more butter and tried larger protein portions. Initially, you will need to not only count your carbs but also count your calories to make sure you are consuming enough calories for your body and exercise routines.
A good book is Carbs & Cals from Amazon (also available as an app but the book is better) and a good way to help you keep a check is the My Fitness Pal website (also an app).
Have a good browse round the forum and come back with any questions.