If you are talking about the images added to a project (or created from image),
there is no direct file size limit, it's more of a pixel limit as you can see in the settings.
If you exceed the pixel limit the image will be downscaled to the maximum in the settings.
It also depends on which device you are using.
The amount of layers is connected to this too. If the canvas size is large you
cannot add too many layers.