How to stop weird shadow situation?

I have all of these cuboids placed individually so it doesn’t stretch out the material, but it’s causing this weird lighting effect, I turned off cast shadow on everything in my scene but I can’t figure out how to get rid of this, it is an eyesore