DjancoekCoek hey there and welcome to the forums.
So I'm guessing you haven't on in BF 1 since they added the EA anti cheat in late october last year. The new anti cheat is quite aggressive and detects some programs on your system as supicious. Some of the software which cause issues are asus armory crate, asus game first, malwarebytes and norton antivirus. Not having windows updated in a longer time can also cause this so make sure you have it updated. Some other software that are interfering with the EAAC are RGB software, razer synapse and some controller software and emulators.
Before going for those I'd recommend updating the EA anti cheat (EAAC).
https://help.ea.com/en/help/pc/ea-anticheat/
Also make sure you don't have any skin mods installed since those won't work anymore with the new anti cheat.
Some guy that I helped a while back had for example network monitoring tool which caused the issue. It's a bit of a trial and error process, so try to remember when was the last time BF 1 worked start working on what has changed since then.
If none of this works I could recommend doing a clean boot https://www.dell.com/support/kbdoc/en-us/000102564/how-to-perform-a-clean-boot-in-windows-10-to-troubleshoot-software-conflicts.
If all the above possible solutions fail then the last one would be, doing clean windows install with drivers only and EA app plus BF 1. Nothing else.
Hope this helps 🙂