Hello,
You need to considerer that when you rotate, the image would not be fixed in the screen that you setup, try to flip the image, to see if you are still having the issue, then you should considerer the RAM that you are allocating
Another thing to review it is to considerer the version of emWIN and MCUExpresso, since not all are supported for all the devices.