You are facing multiple errors:
1. There is an error in YANG model Cisco-IOS-XE-bgp.yang:11637.
2. There are multiple errors in cisco-xe-switching-openconfig-platform-deviation.yang, which references non-existent nodes.
3. The modules ietf-restconf.yang and ietf-yang-patch.yang require YANG-1.1, which is currently not supported by YDK.
The first two issues can be resolved by XR engineers, but the last - requires new development on YDK side.
Yan Gorelik
YDK Solutions