无语法错误,不过这里用虚拟语气比较合适,因主观表达的是非真实的条件
How I hope that did I not know that you are lying.
(因that you are lying整体做宾语从句,are不需要改were,后一个that可省略)