We just converted our HUB from OSPF to BGP and discovered all of our Z3s running 16.16 because they would be up for various amounts of time then they would go through no connectivity then connect then reboot over and over again.
My Z3s on 17.10.2 did not have this problem, I updated some of the 16.16 to 16.16.6 and this also solved the intermittent reboot issue. My MXs running 16.16 did not have the reboot issues, only my Z3's.
16.16.6 and 17.10.2 have been stable.
This issue only manifested when a client was connected to the Z3 as well wired or wireless. If the Z3 is online but no clients are in use it does not exhibit the reboot behavior.