It appears that the bug has been fixed by: https://sqlite.org/src/info/2363a14ca723c034. Appreciate with the fix.