It is almost certainly a compatibility issue between the WiFi network driver in the phone and the office WiFi source (router or wireless access point). Such problems affect a small percentage of WiFi connections. You are not alone. Unfortunately, I suspect that the Android upgrade included a new wireless driver and that is the source of your problem.
I used to have a laptop that had similar symptoms to those you describe, but I managed to find a different wireless driver that solved the problem for me. Unfortunately, it is not easy to change the driver in a phone.
You could try a factory reset; however, you will have to backup everything that is in the phone's internal memory, and remove the SIM card and any optional memory cards. I have only tried a factory reset twice on an Android device. The first time worked, but the second one was after I had upgraded to a later version of Android, and it refused to perform the reset.
You could see if a service centre can put the phone back to its previous version, but you will have to back up everything you wish to keep.
The other alternative, which is the solution I have used to get my Asus tablet laptop to work with my router, is to use a WiFi Range Extender in the office. I have a TP-Link TL-WA850RE extender. It connects to my router by WiFi, and its extended WiFi network (with a different SSID) is used for the connection to the laptop.
As a different example of how operating system upgrades can cause problems, when I did the free upgrade from Windows 8.1 to Windows 10 on my main desktop PC the Ethernet to my router stopped working completely. As there were a number of other issues caused by the upgrade and I had created a full backup of C:, so I simply went back to 8.1 to get the PC working properly again. Unfortunately, this sort of recovery is not normally possible on a phone.
I hope you find a suitable solution for your problem.