Limit number of launch width

Yes, that is not going to work.

Please have a look into these two posts which mention the maximum launch dimensions:
https://forums.developer.nvidia.com/t/optix-7-0-0-memory-error/180777
https://forums.developer.nvidia.com/t/3d-optixlaunch-to-accommodate-multiple-viewpoints/160421/2