I need help getting Windows 8.1 to work on my computer.

My computer is an HP Laptop 17-by1061st. It currently runs Windows 10 but I want to upgrade to Windows 8.1
CPU: Intel® Core™ i3-8145U (2.1 GHz, Dual Core)
Memory: 16GB (2x 8GB ddr4)
Graphics: Intel UHD Graphics 620, Integrated
Network: Realtek RTL8821CE 802.11b/g/n/ac (1x1) Wi-Fi®