Recently my Xbox Achievements stopped popping up for Forza Motorsport 7 as described before in this post. Achievements for other games where working fine but after a while also Battlefield 1 achievements where not popping up anymore.
After quitte some troubleshooting, I found out that the Pi-Hole Ad-Block DNS service installed on my Raspberry Pi was blocking the achievements traffic to the Xbox Servers. The strange thing is that Microsoft is using the same server addresses for telemetry data! So blocking telemetry data also blocks achievements, while all other Microsoft services are working fine. Even the Network Tester on the Xbox told me that the connection was working fine.
After I changed the DNS server settings on the Xbox to the Google DNS Servers (18.104.22.168 and 22.214.171.124), the achievements started to pop-up slowly. One achievement in Forza triggered all other achievements as well resulting in 9 achievement unlocks at the same time. You can follow this guide on the Microsoft Support site to change the DNS Settings on your Xbox One X: Network settings on Xbox One.
Let me know if this solved your issues too.