Is there a way to disable a blockchain validation?
It you just want to test your code with the Bitcoin Core RPC calls, you can use regtest mode by starting Bitcoin Core with -regtest. This mode sets up a private testing network so there is no need to sync the blockchain or connect to other peers unless you set up other peers to connect to. You can mine your own blocks in this mode too so blocks are produced when you want them.