### Describe the bug
DT crashes on export when specific scaling ratios are sele…cted.
For example, on my Sony A6400 (6000x4000 native resolution), it crashes when the scaling ratio is an integer, for example 6000x4000, 3000x2000, 1200x800, 600x400 and so on.
It does not crash when the scaling ratio is even slightly different, like 3000x2001.
Also it does not crash with 2000x3000, irrespective of the image orientation.

### Steps to reproduce
1) Export an image to file by setting an integer scaling ratio
2) See the crash
### Expected behavior
not crash
### Logfile | Screenshot | Screencast
See the last part of the log
```
18,6828 pixelpipe starting CL [export] ( 0/ 0) 2995x2000 scale=0,4970 --> ( 0/ 0) 2995x2000 scale=0,4970 device=0 (nvidiacudanvidiageforcegtx10603gb)
18,6828 [dt_opencl_check_tuning] use 2671MB (headroom=ON, pinning=OFF) on device `NVIDIA CUDA NVIDIA GeForce GTX 1060 3GB' id=0
18,6829 modify roi IN [export] finalscale ( 0/ 0) 6026x4025 scale=1,0000 --> ( 0/ 0) 2995x2000 scale=0,4970
18,6829 modify roi IN [export] demosaic ( 0/ 0) 6026x4024 scale=1,0000 --> ( 0/ 0) 6026x4025 scale=1,0000
18,6829 modify roi IN [export] rawprepare ( 0/ 0) 6048x4024 scale=1,0000 --> ( 0/ 0) 6026x4024 scale=1,0000
18,6829 pixelpipe data: full [export] ( 0/ 0) 6048x4024 scale=1,0000 --> ( 0/ 0) 6048x4024 scale=1,0000
18,6829 [dev_pixelpipe] took 0,000 secs (0,000 CPU) initing base buffer [export]
18,6830 [opencl memory] device 0: 48674304 bytes (46,4 MB) in use
18,6897 [opencl memory] device 0: 145668800 bytes (138,9 MB) in use
18,6916 pixelpipe process CL [export] rawprepare ( 0/ 0) 6048x4024 scale=1,0000 --> ( 0/ 0) 6026x4024 scale=1,0000 IOP_CS_RAW
18,6916 [opencl memory] device 0: 145668816 bytes (138,9 MB) in use
18,6916 [opencl memory] device 0: 145668832 bytes (138,9 MB) in use
18,6962 [opencl memory] device 0: 145668816 bytes (138,9 MB) in use
18,6978 [opencl memory] device 0: 145668800 bytes (138,9 MB) in use
18,6981 [opencl memory] device 0: 96994496 bytes (92,5 MB) in use
18,6982 [dev_pixelpipe] took 0,015 secs (0,000 CPU) [export] processed `rawprepare' on GPU, blended on GPU
18,8087 [dev_pixelpipe] module `rawprepare' min: (0,000202) max: (0,374865) [export]
18,8088 [opencl memory] device 0: 193988992 bytes (185,0 MB) in use
18,8106 pixelpipe process CL [export] temperature ( 0/ 0) 6026x4024 scale=1,0000 --> ( 0/ 0) 6026x4024 scale=1,0000 IOP_CS_RAW
18,8106 [opencl memory] device 0: 193989004 bytes (185,0 MB) in use
18,8113 [opencl memory] device 0: 193988992 bytes (185,0 MB) in use
18,8168 [opencl memory] device 0: 96994496 bytes (92,5 MB) in use
18,8170 [dev_pixelpipe] took 0,008 secs (0,000 CPU) [export] processed `temperature' on GPU, blended on GPU
18,9274 [dev_pixelpipe] module `temperature' min: (0,000564) max: (0,453631) [export]
18,9370 [opencl memory] device 0: 0 bytes (0,0 MB) in use
18,9373 pixelpipe process CPU [export] demosaic ( 0/ 0) 6026x4024 scale=1,0000 --> ( 0/ 0) 6026x4025 scale=1,0000 IOP_CS_RAW -> IOP_CS_RGB
19,2015 clip_and_zoom_roi [export] demosaic ( 0/ 0) 6026x4024 scale=1,0000 --> ( 0/ 0) 6026x4025 scale=1,0000
Magick: caught exception 0xC0000005 "Access violation"...
```
### Commit
_No response_
### Where did you obtain darktable from?
self compiled
### darktable version
4.6.0
### What OS are you using?
Windows
### What is the version of your OS?
Win 11
### Describe your system?
_No response_
### Are you using OpenCL GPU in darktable?
Yes
### If yes, what is the GPU card and driver?
Nvidia 1060, OpenCL on or off doesn't help
### Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
_No response_