First of all, select your version from arch archives for cuda and cuda-tools. I selected the latest 12.1 version: 12.1.1-4
Then just run these lines:
sudo pacman -U https://archive.archlinux.org/packages/c/cuda/cuda-12.1.1-4-x86_64.pkg.tar.zst
sudo pacman -U https://archive.archlinux.org/packages/c/cuda-tools/cuda-tools-12.1.1-4-x86_64.pkg.tar.zst
Now as soon as you install these packages package manager will want to update them, to disable updating these packages.
Modify this line in /etc/pacman.conf
[options]
...
IgnorePkg = cuda cuda-tools
...
Now when you update your system
$ sudo pacman -Syu
[sudo] password for osbm:
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
:: Starting full system upgrade...
warning: cuda: ignoring package upgrade (12.1.1-4 => 12.4.1-3)
warning: cuda-tools: ignoring package upgrade (12.1.1-4 => 12.4.1-3)
there is nothing to do