Your Apple Pencil is exhibiting symptoms of a failing battery - that will not reliably accept or hold any charge. The behaviour that you observe is likely coincidental with the iPadOS 26.0.1 update - and not necessarily because of it.
All rechargeable batteries, regardless of battery chemistry, require maintenance through periodic charging. In this regard, the battery within the Apple Pencil is no different to any other device that is powered by an internal battery.
See >>> Charge your Apple Pencil and check the battery - Apple Support
The Pencil's tiny internal Li-ion battery is susceptible to permanent/irreversible damage through being left discharged for long periods. Even some “new” pencils can exhibit signs of failure out-of-the-box if they are “old stock”. It is essential that if you have an Apple Pencil that you charge it regularly - whether used or not - so as to protect the battery from deep-discharge. Do not allow a pencil to remain in low-charge state for any period of time - as the internal battery will fail, rendering the Pencil useless. Setting aside an unused Pencil, for extended periods, is a recipe for premature death of the Pencil battery.
It is generally recommended that a second generation Apple Pencil, or Apple Pencil Pro, should be kept docked with the host iPad when not in use - as this ensures that the tiny internal battery is kept optimally charged when not in use. Charging only occurs when the battery requires charge from the iPad, optimal charge being entirely automatic.
Keeping the Pencil separated from the iPad when unused risks allowing its battery to discharge; if allowed to remain in this state, the battery will suffer irreparable damage. When the battery fails, the only remedy is to replace the entire Pencil; the battery is not a serviceable item. If the Pencil Battery has failed, the only remedy is to replace the Pencil. If the battery has failed and your pencil is within its one-year warranty, you should look to having it replaced by your retailer or at an Apple Store.
You would be best advised to visit the Genius Bar at your local Apple Store or Apple Authorised Service Provider (AASP) - where the technicians will be able to test and assess your iPad and Pencil. If a fault is identified, you’ll be in the best possible place to explore your available options:
Genius Bar Reservation and Apple Support Options - Apple