problem projecting a photo onto a mesh
This is due to the extreme perspective that forces high errors on simple geometry as mentioned by @jachymmichal.

One way is to add geometry to your cube before projecting UVs from view. Here is a way using the subdiv modifier: