Hi ,
I can see the question is already answered, have you tried by providing dimension [N:N] , as this already mentioned in the docs - https://learn.microsoft.com/en-us/graph/api/profilephoto-update?view=graph-rest-1.0&tabs=http .
Due to the current limit of 4 MB on the total size of each REST request, the size of the photo you can add is also limited to 4 MB. The following are the supported dimensions for HD photos on Exchange Online: 48x48, 64x64, 96x96, 120x120, 240x240, 360x360, 432x432, 504x504, and 648x648.
Hope this fixed your issue, please let us know if you have any query
Thanks