For anyone else that hits this when creating custom code for CMS modules. Make sure the currentPageID is set correctly otherwise it will fail to populate the relationship and so you get this nice ambiguous error!