Receiving error code Himem.sys is missing

I have faced this problem since a few days. I am currently using a Hewlett Packard 1995 model and Windows 98. Windows 98 will not start up. I noticed that it only loads up for 20 seconds and then it freezes on the Windows 98 screen. I tried running in safe mode but it won’t. What I can just do just goes to a command prompt to do a safe mode prompt or from the boot up the options screen and could be done step by step. I always get this error message before it goes to the c:prompt:
Error: Himem.sys has detected unreliable XMS memory at address 02A065FE XMS Driver is not installed.
Himem.sys is missing
This is weird because I tried manually looking in the Windows directory and I found the missing Himem.sys file. Now I am pointless about the reason for this error.
